home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
pc
/
Code
/
Chapter04
/
twocolorbox.s3d
< prev
next >
Wrap
Text File
|
2000-08-31
|
990b
|
54 lines
Transform {
translation 0 0 0
children Shape {
appearance [
Appearance {
material Material {
diffuseColor 0 1 0 #green
}
}
MultiAppearance {
material Material {
diffuseColor 1 0 0 #red
}
selfIlluminate true
}
]
geometry MultiMesh {
coord Coordinate {
point
[ -1 1 1,
-1 -1 1,
1 1 1,
1 -1 1,
1 1 -1,
1 -1 -1,
-1 1 -1,
-1 -1 -1 ]
}
coordIndex
[ 0, 1, 3, 2, -1,
4, 5, 7, 6, -1,
6, 7, 1, 0, -1,
2, 3, 5, 4, -1,
6, 0, 2, 4, -1,
1, 7, 5, 3, -1 ]
appearanceIndex
[ 0,
0,
0,
1,
1,
1, ]
} #end of MultiMesh
} #end of Shape
} #end of Transform